package web.ling.por

class Provider extends User {

    Language nativeLanguage
    List<Language> languages
    List<FieldOfExpertise> fieldsOfExpertise



    static constraints = {

        nativeLanguage blank: false
        languages minSize: 1, maxSize: 5
        fieldsOfExpertise minSize: 1, maxSize: 5

    }

    static hasMany = [languages: Language, fieldsOfExpertise: FieldOfExpertise]

}
